import requests
from bs4 import BeautifulSoup

# 发送HTTP请求获取网页内容
url = 'http://quote.eastmoney.com/center/gridlist.html?st=ChangePercent&sr=-1#hs_a_board'
response = requests.get(url)

html = response.text

soup = BeautifulSoup(html, 'html.parser')
table = soup.find('table')
print(table.text)

rows = table.find_all('tr')
for row in rows:
    cols = row.find_all('td')
    for col in cols:
        print(col.text, end=' ')
    print()